import chalk from "chalk";

// 定义主题和对应的 emoji
const theme = {
    info: { color: chalk.blue, emoji: " 💡 " },
    success: { color: chalk.green, emoji: " 🎉 " },
    warning: { color: chalk.yellow, emoji: " 🔔 " },
    error: { color: chalk.red, emoji: " 🚨 " },
    debug: { color: chalk.gray, emoji: " 🔍 " },
    highlight: { color: chalk.bold, emoji: " 🌟 " }
};

// 日志工具方法
const logInfo = message => console.log(`${theme.info.emoji}${theme.info.color(message)}`);
const logSuccess = message => console.log(`${theme.success.emoji}${theme.success.color(message)}`);
const logWarning = message => console.log(`${theme.warning.emoji}${theme.warning.color(message)}`);
const logError = message => console.log(`${theme.error.emoji}${theme.error.color(message)}`);
const logDebug = message => console.log(`${theme.debug.emoji}${theme.debug.color(message)}`);
const logHighlight = message => console.log(`${theme.highlight.emoji}${theme.highlight.color(message)}`);

// 导出方法
export { logInfo, logSuccess, logWarning, logError, logDebug, logHighlight };
